package com.twenty.seven.webapp.demo.feign;

import com.twenty.seven.webapp.demo.hystix.DemoHystix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author 001
 * @Date 2020/1/14 10:37
 * @TODO
 **/
@FeignClient(name = "demo-server",fallbackFactory = DemoHystix.class)
public interface DemoService {

    /**
     * 测试
     * @return
     */
    @GetMapping(value = "demo-server/get")
    String getHello();
}
